import request from '../../util/axios'

// 分页查询档案移交-导出信息
export const getDataExportList = (data) => {
  return request({
    url: '/yuyi-category-boot/api/transfer/export/paging',
    method: 'post',
    data
  })
}

// 下载移交导出文件
export const downloadDataExportList = (id) => {
  return request({
    url: `/yuyi-category-boot/api/transfer/export/${id}/download`,
    responseType: 'blob'
  })
}

// 删除档案移交-导出信息
export const delDataExportList = (data) => {
  return request({
    url: '/yuyi-category-boot/api/transfer/export',
    method: 'delete',
    data
  })
}

// 根据检索条件查询移交档案数量
export const numDataExportList = (idCategory, data) => {
  return request({
    url: `/yuyi-category-boot/api/transfer/export/${idCategory}/getTotal`,
    method: 'post',
    data
  })
}

// 生成移交数据包
export const addDataExportList = (data) => {
  return request({
    url: '/yuyi-category-boot/api/transfer/export/add',
    method: 'post',
    data
  })
}
